package pers.xukai.fullMark.entity.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;
import pers.xukai.common.constant.GlobalConstant;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author : 殷绪凯
 * @description : someDescription
 * @since : 2022年 12月 06日 14:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity(name = "bill")
public class Bill {
    /**
     * 主键id
     */
    @Id
    @GeneratedValue(generator = GlobalConstant.ID_GENERATOR_NANO)
    @GenericGenerator(name = GlobalConstant.ID_GENERATOR_NANO, strategy = GlobalConstant.ID_GENERATOR_NANO_PATH)
    private String billId;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 金额
     */
    @Column(name = "money")
    private BigDecimal money;

    /**
     * 账单类型
     */
    @Column(name = "type")
    private Integer type;

    /**
     * 账单日期
     */
    @Column(name = "date")
    private Date date;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private Date updateTime;


}
